package 第二章.CountDownLatch_getCount;

import java.util.concurrent.CountDownLatch;

public class Run {

	public static void main(String[] args) throws InterruptedException {
		CountDownLatch count = new CountDownLatch(3);
		System.out.println("main getCount1=" + count.getCount());
		count.countDown();
		System.out.println("main getCount2=" + count.getCount());
		count.countDown();
		System.out.println("main getCount3=" + count.getCount());
		count.countDown();
		System.out.println("main getCount4=" + count.getCount());
		count.countDown();
		System.out.println("main getCount5=" + count.getCount());
		count.countDown();
		System.out.println("main getCount6=" + count.getCount());
	}

}
